import 'node-assist'
import CommonUtil from 'js-common-modules/lib/node/utils/CommonUtil'
import BitcoinWalletHelper from 'js-common-modules/lib/node/helpers/bitcoin/BitcoinWalletHelper'

global['logger'] = console

const config = {
  version: 'mainnet',
  xpriv: '***'
}


CommonUtil.startAsyncMethod(async () => {
  const bitcoinWalletHelper = new BitcoinWalletHelper()
  const wif = bitcoinWalletHelper.xprivToWif(config['xpriv'], config['version'])
  logger.error('wif: ', wif)
})
// xprv9ukzZ1rS1FBU1yGuVVPdz5zSgjFy83rXoiks3XW5CD9nzud2AAbSTCfqFEeZsMTdu6ZRZJjMDZkNTgyzAPT6hsBp4SXNig2Hj4Vs4JvRX2f
// L3EBnCd9bC6HmMAJtwiSQ2KbKsLLfWvMPf8vTic7QRXWqUeVEeyb
// 4C7A9640C72DC2099F23715D0C8A0D8A35F8906E3CAB61DD3F78B67BF887C9AB
// 000f2453798ad4f951eecced2242eaef3e1cbc8a7c813c203ac7ffe57060355d
// 0317c75f38c97b27eca0c56c9882224338d0bd41d929a1cc9ec1a2f5924d293b92